@keyframes rotation {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

.vin-toast {
  position: fixed;
  bottom: 150px;
  left: 0;
  z-index: 9999;
  width: 100%;
  font-family: $font-family;
  text-align: center;
  pointer-events: none;
  &-small {
    .vin-toast-inner {
      font-size: $font-size-small;
    }
  }
  &-large {
    .vin-toast-inner {
      font-size: $font-size-large;
    }
  }
  &-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: $toast-cover-bg-color;
    pointer-events: auto;
  }
  &-inner {
    display: inline-block;
    min-width: 40%;
    max-width: 65%;
    padding: $toast-inner-padding;
    color: $toast-font-color;
    font-size: $toast-text-font-size;
    text-align: center;
    word-break: break-all;
    background: $toast-inner-bg-color;
    border-radius: $toast-inner-border-radius;
  }
  &-text {
    font-size: $toast-text-font-size;
    &:empty {
      margin-bottom: -8px;
    }
  }
  &-title {
    font-size: $toast-title-font-size;
    &:empty {
      margin-bottom: -8px;
    }
  }
  &-has-icon {
    .vin-toast-icon-wrapper {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      margin-bottom: 8px;
    }
  }
  &-center {
    top: 50%;
    transform: translateY(-50%);
  }
  &-loading {
    .vin-toast-inner {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .vin-toast-icon-wrapper {
      animation: rotation 2s linear infinite;
    }
  }
}

.toast-fade-enter-active {
  transition: opacity 0.3s;
}

.toast-fade-leave-active {
  transition: opacity 0.3s;
}

.toast-fade-enter-from,
.toast-fade-leave-to {
  opacity: 0;
}
